import http from '../../../util/http.js';
//门店房型列表
export function shopProfileList(pagination, param) {
    let url = `/shop/profile/list/${pagination.pageSize}/${pagination.current}`;
    return new Promise((resolve, reject) => {
        http.get(url, param).then(response => {
            resolve(response)
        });
    });
}
//新增门店档案
export function shopProfileAdd(data) {
    let url = `/shop/profile/add`;
    return new Promise((resolve, reject) => {
        http.post(url, data).then(response => {
            resolve(response)
        });
    });
}
//修改门店档案
export function shopProfileUpdate(id, data) {
    let url = `/shop/profile/update/${id}`;
    return new Promise((resolve, reject) => {
        http.put(url, data).then(response => {
            resolve(response)
        });
    });
}
//删除门店档案
export function shopProfileDelete(id) {
    let url = `/shop/profile/delete/${id}`;
    return new Promise((resolve, reject) => {
        http.delete(url).then(response => {
            resolve(response)
        });
    });
}


